package com.cfpamf.ms.insur.pay.util;

import com.xxl.job.core.log.XxlJobLogger;
import org.slf4j.Logger;

/**
 * @author zhangnayi
 */
public class XxlLogger {

    public static void info(Logger log, String message) {
        XxlJobLogger.log(message);
        log.info(message);
    }

    public static void warn(Logger log, String message) {
        XxlJobLogger.log(message);
        log.warn(message);
    }

    public static void warn(Logger log, Throwable throwable) {
        XxlJobLogger.log(throwable);
        log.warn("", throwable);
    }

    public static void error(Logger log, Throwable throwable) {
        XxlJobLogger.log(throwable);
        log.error("", throwable);
    }
}
